<template>
  <div class="my">
    <topNav><slot>我的</slot> </topNav>
    <hr />
    <!-- 登录注册 -->
    <div class="top">
      <div class="left">
        <img src="@/assets/img/user/user.jpg" alt="" />
      </div>
      <div class="center">
        <p>登录/注册</p>
        <p>
          <img src="@/assets/img/user/phone.png" alt="" />
          暂无绑定手机号
        </p>
      </div>
      <div class="right">></div>
    </div>
    <!-- 钱包 -->
    <div class="box">
      <div>
        <p><span>0.00</span>元</p>
        <p>我的余额</p>
      </div>
      <div class="one">
        <p><span>0</span>个</p>
        <p>我的优惠</p>
      </div>
      <div>
        <p><span>0</span>分</p>
        <p>我的积分</p>
      </div>
    </div>
    <!-- 我的 -->
    <div class="boxone">
              <div>
        <img src="@/assets/img/user/msg.png" alt="" />
        <p>我的消息</p>
      </div>
      <div>
        <img src="@/assets/img/user/banlance.png" alt="" />
        <p>积分商城</p>
      </div>
      <div>
        <img src="@/assets/img/user/member.png" alt="" />
        <p>会员卡</p>
      </div>
   
      <hr class="hr">
      <div>
        <img src="@/assets/img/user/car.png" alt="" />
        <p>我的购物车</p>
      </div>
      <div>
        <img src="@/assets/img/user/member.png" alt="" />
        <p>下载购物APP</p>
      </div>
    </div>

    <buttonNav></buttonNav>
  </div>
</template>

<script>
import ButtonNav from "../components/buttonNav.vue";
import topNav from "../components/topNav.vue";
export default {
  components: { topNav, ButtonNav },
  name: "My",
};
</script>

<style lang="scss" scoped>
.my{
    margin-top:50px ;
}
.top {
  display: flex;
  width: 100%;
  height: 120px;
   background-color: rgb(250, 0, 196);
  align-items: center;
  .left {
    width: 20%;
    margin: 0 8px;
    img {
      width: 100%;
    }
  }
  .center {
    color: white;
    font-size: 19px;
    width: 65%;
    display: flex;
    flex-direction: column;
    p {
      width: 100%;
      height: 30px;
      line-height: 30px;
      img {
        width: 30px;
      }
    }
  }
  .right {
    font-size: 28px;
    color: white;
  }
}
.box {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100px;
  border-bottom: 1px solid #ccc;
  div {
    flex: 1;
    text-align: center;
    height: 100%;
    padding: 18px 0;
    p {
      font-size: 14px;
      span {
        font-size: 30px;
        font-weight: 700;
        color: rgb(255, 81, 0);
      }
    }
  }
  .one {
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
  }
}
.boxone {
  width: 100%;
  height: 150px;
  div {
    height: 60px;
    display: flex;
    align-items: center;
    img {
      width: 30px;
      margin: 10px;
    }
    p {
      font-size: 18px;
      width: 100%;
      line-height: 60px;
      border-bottom: 1px solid #ccc;
    }
  }
}
.hr{
    height: 15px;
    background-color: rgb(231, 231, 231);
    border: none;
}
</style>